<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
<!--      <a-layout-footer class="footer">-->
<!--        <a href="http://h1234.top" target="_blank">By 黄炎榕</a>-->
<!--      </a-layout-footer>-->
    </a-layout>
  </div>
</template>

<style>
/*内容样式*/
#basicLayout .content {
  padding: 20px;
  background: linear-gradient(to right, #fefefe, #fff);
}

/*底部样式*/
#basicLayout .footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 16px;
  background-color: #f5f7fa;
}
</style>

<script>
import { defineComponent } from "vue";
import GlobalHeader from "@/components/GlobalHeader.vue";

export default defineComponent({
  components: { GlobalHeader },
});
</script>